package org.jeecg.modules.gzgl.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.base.controller.JeecgController;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.gzgl.entity.FxyGzgl00;
import org.jeecg.modules.gzgl.service.IFxyGzgl00Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Arrays;

/**
* @Description: 公证公共接口
* @Author: zhaodui
* @Date:   2020-02-06
* @Version: V1.0
*/
@RestController
@RequestMapping("/gzgl/fxycom")
@Slf4j
public class FxyComController extends JeecgController<FxyGzgl00, IFxyGzgl00Service> {
   @Autowired
   private IFxyGzgl00Service fxyGzgl00Service;
   /**
    *   添加
    *
    * @param comEntity
    * @return
    */
   @PostMapping(value = "/synchronous")
   public ResulFxy<?> synchronous(@RequestBody comEntity comEntity) {
       log.info("comEntity="+comEntity.toString());
       ResulFxy resulFxy = new ResulFxy();
       resulFxy.setResultCode("success");
       resulFxy.setResultDesc("同步操作成功");
        return resulFxy;
   }
   /**
    *   添加
    *
    * @param comEntity
    * @return
    */
   @PostMapping(value = "/asynchronous")
   public ResulFxy<?> asynchronous(@RequestBody comEntity comEntity) {
       log.info("comEntity="+comEntity.toString());
       ResulFxy resulFxy = new ResulFxy();
       resulFxy.setResultCode("success");
       resulFxy.setResultDesc("异步操作成功");
        return resulFxy;
   }
}
